package com.sh.personnel.vo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 林思浩
 * @date 2020/03/18 15:57
 */
@Data
@Accessors(chain = true)
public class MenuDto {

    private Integer id;
    private String name;
    private String permission;
    private Integer type;
    private String createtime;

    @JsonIgnore
    private Integer parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<MenuDto> children = new ArrayList<>();

}
